#@ backend_layout()
<!-- Main content wrapper -->
#define content()
<!-- Main content wrapper -->
<div class="wrapper">
    <div class="statsRow">
        <div class="wrapper">
            <div class="controlB">
                <ul>
                    <li><a href="/backend/product_image/add" title=""><img src="/bes/images/icons/control/32/plus.png"
                                                                           alt=""/><span>添加图片</span></a></li>
                </ul>
                <div class="clear"></div>
            </div>
        </div>
    </div>
    <!-- Static table -->
    <div class="widget">
        <div class="title"><img src="/bes/images/icons/dark/frames.png" alt="" class="titleIcon"/><h6>
            #(product.name??)</h6>
        </div>
        <div class="gallery">
            <ul>
                #for(productImage:productImageList)
                <li><a href="/upload/#(productImage.image)" title="" rel="lightbox"><img src="/upload/#(productImage.image)" alt=""></a>
                    <div class="actions" style="display: none;">
                        <a href="/backend/product_image/del?id=#(productImage.id)" title=""><img src="/bes/images/icons/delete.png" alt=""></a>
                    </div>
                </li>
                #end
            </ul>
            <div class="fix"></div>
        </div>
        <div class="clear"></div>
        <div class="formRow">
            <form action="/backend/product_image/save" method="post" enctype="multipart/form-data">
                <input type="hidden" name="productId" value="#(product.id)" />
                <div class="formLeft"><input type="file" class="validate[required]" name="fileName" id="fileName"/>
                </div>
                <div class="clear"></div>
                <label><input type="submit" value="添加" class="redB"></label>
                <div class="clear"></div>
            </form>
        </div>
    </div>
</div>
</div>
#end